﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ORMAC.UI.WPF
{
    /// <summary>
    /// Interaction logic for WindowSelectDB.xaml
    /// </summary>
    public partial class WindowSelectDB : Window
    {
        public string ConnectionString
        {
            get
            {
                return textBoxCnn.Text;
            }
        }
        public string DBName
        {
            get
            {
                return textDBName.Text;
            }
        }
        public WindowSelectDB()
        {
            InitializeComponent();
        }

        private void buttonNext_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            this.Close();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            textBoxCnn.Text = @"Server=.\SQLExpress;Database=Test; Trusted_Connection=Yes";
                //@"Data Source=localhost\Polaris;Initial Catalog=Test;Integrated Security=SSPI";
            textDBName.Text = "Test";
        }
    }
}
